Skip to content

fix: skip Stepwise runtime when disabled - #1551

Open
DamienZCollins wants to merge 2 commits into
BigPizzaV3:mainfrom
DamienZCollins:fix/stepwise-disabled-injection
Open

fix: skip Stepwise runtime when disabled#1551
DamienZCollins wants to merge 2 commits into
BigPizzaV3:mainfrom
DamienZCollins:fix/stepwise-disabled-injection

Conversation

@DamienZCollins

@DamienZCollins DamienZCollins commented Jul 17, 2026

Copy link
Copy Markdown

Summary

  • Include the Stepwise runtime in the new-document injection bundle only when codexAppStepwiseEnabled is enabled.
  • Stop an already injected runtime from recreating its floating UI, observer, or generation request after the setting is disabled.
  • Clarify in the manager and injected settings panel that changing the Stepwise setting requires restarting Codex++.
  • Add disabled and enabled bundle regression coverage.

Validation

  • cargo fmt --check
  • cargo test -p codex-plus-core --test cdp_bridge injection_script_ (47 passed)
  • cargo test -p codex-plus-core --test cdp_bridge stepwise_ (10 passed)
  • npm run check in apps/codex-plus-manager
  • cargo build -p codex-plus-launcher --release
  • cargo test -p codex-plus-core --test cdp_bridge (96/97 passed)

Notes

The only full-suite failure is list_targets_can_query_ipv6_loopback_cdp_endpoint, which cannot bind/query IPv6 loopback in this Windows environment (WSAEACCES 10013). It is independent of this change. The manager dependency audit reports three existing lockfile dependency advisories; no dependency files were changed.

Fixes #1549

@BigPizzaV3

Copy link
Copy Markdown
Owner

维护者审查:当前改动的功能逻辑没有发现 blocker。disabled bundle 不包含 Stepwise runtime,enabled 时在 ensureSettings() 后激活,运行中关闭也会走 stopRuntime(),与 UI 的“重启生效”提示一致。

但分支目前与 main 冲突,且没有任何 CI 结果。请 rebase/解决冲突后触发三平台 checks,并确认相关 cdp_bridge tests 通过;通过后可以合并。

@BigPizzaV3

Copy link
Copy Markdown
Owner

Codex++ maintainer review note

当前 main 下这个 PR 仍存在 merge conflict,暂时不能合并。请先 rebase 到最新 main 并解决冲突;更新后我们会重新跑针对性测试再复审。

This PR currently conflicts with main, so it is not mergeable yet. Please rebase onto the latest main and resolve the conflicts, then we can review and test it again.

@DamienZCollins
DamienZCollins force-pushed the fix/stepwise-disabled-injection branch from ee3bf49 to 03304e9 Compare August 4, 2026 04:04
@DamienZCollins

Copy link
Copy Markdown
Author

已 rebase 到当前 main 并解决冲突。已在本地通过:

  • cargo fmt --check
  • cargo test -p codex-plus-core --test cdp_bridge injection_script_ (47 passed)
  • cargo test -p codex-plus-core --test cdp_bridge stepwise_ (10 passed)
  • Manager npm run check
  • cargo build -p codex-plus-launcher --release

完整 cdp_bridge 为 96/97;唯一失败是本机 Windows IPv6 loopback socket 权限限制(WSAEACCES 10013),与本 PR 无关。

GitHub 已创建 PR build artifacts run,但当前为 action_required。麻烦维护者批准/重新运行来自 fork 的三平台检查,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Stepwise 关闭后仍被注入并可能显示悬浮窗

2 participants